<?php

if(isset($n))
{
	$n->setMarkup(ob_get_contents());
	ob_clean();
   	echo $n->process();
	
    if(NCore_Utility_ConfigManager::getSetting('profiling') == N::APPEND_PROFILING_RESULTS && N::getMode() != 'test')
	{
		NCore_Profiler::addMarker('end of script');
		
		foreach(NCore_Profiler::getMarkers() as $key=>$value)
		{
			echo "\n<!--Reached '$key' marker $value seconds into the script-->";
		}
	}
}

?>